@charset "utf-8";
@import "../var";
@import "../function";
@mixin bgc($bgc) {
    @if $bgc == "info" {
        background-color: $--color-info;
    }
    @if $bgc == "primary" {
        background-color: $--color-primary;
    }
    @if $bgc == "success" {
        background-color: $--color-success;
    }
    @if $bgc == "danger" {
        background-color: $--color-danger;
    }
    @if $bgc == "warning" {
        background-color: $--color-warning;
    }
    @if $bgc == "dark" {
        background-color: $--color-dark;
    }
    @if $bgc == "round" {
        background-color: $--color-round;
    }
    @if $bgc == "while" {
        background-color: $--color-while;
    }
}
@mixin fontcol($bgc) {
    @if $bgc == "info" {
        color: $--color-info;
    }
    @if $bgc == "primary" {
        color: $--color-primary;
    }
    @if $bgc == "success" {
        color: $--color-success;
    }
    @if $bgc == "danger" {
        color: $--color-danger;
    }
    @if $bgc == "warning" {
        color: $--color-warning;
    }
    @if $bgc == "dark" {
        color: $--color-dark;
    }
    @if $bgc == "round" {
        color: $--color-round;
    }
    @if $bgc == "while" {
        color: $--color-while;
    }
}
@mixin borderCol($bgc) {
    @if $bgc == "info" {
        border-color: $--color-info;
    }
    @if $bgc == "primary" {
        border-color: $--color-primary;
    }
    @if $bgc == "success" {
        border-color: $--color-success;
    }
    @if $bgc == "danger" {
        border-color: $--color-danger;
    }
    @if $bgc == "warning" {
        border-color: $--color-warning;
    }
    @if $bgc == "dark" {
        border-color: $--color-dark;
    }
    @if $bgc == "round" {
        border-color: $--color-round;
    }
    @if $bgc == "while" {
        border-color: $--color-while;
    }
}
@mixin border($bgc) {
    border: 1px solid selectorColor($bgc);
}
@mixin size($size) {
    @if $size == "mini" {
        padding: 6px 10px;
    }
    @if $size == "small" {
        padding: 8px 16px;
    }
    @if $size == "big" {
        padding: 10px 20px;
    }
}
@mixin textsize($size) {
    @if $size == "mini" {
        font-size: 10px;
    }
    @if $size == "small" {
        font-size: 18px;
    }
    @if $size == "big" {
        font-size: 24px;
    }
}
//下拉动画 top
// @mixin drop() {
@keyframes drop {
    // 0%{transform:scale(1,0);}
    // 100%{transform:scale(1,1);}
    0% {transform: scale(1, 0);}
    25% {transform: scale(1, 1.25);}
    50% {transform: scale(1, 0.75);}
    75% {transform: scale(1, 1.1);}
    100% {transform: scale(1, 1);}
}

@-webkit-keyframes drop {
    // 0%{-webkit-transform:scale(1,0);}
    // 100%{-webkit-transform:scale(1,1);}
    0% {transform: scale(1, 0);}
    25% {transform: scale(1, 1.25);}
    50% {transform: scale(1, 0.75);}
    75% {transform: scale(1, 1.1);}
    100% {transform: scale(1, 1);}
}
//gsopacity
@keyframes gsopacity {
    0% {
        filter: alpha(Opacity=0);
        opacity: 0;
    }
    25% {
        filter: alpha(Opacity=25);
        opacity: 0.25;
    }
    50% {
        filter: alpha(Opacity=50);
        opacity: 0.5;
    }
    75% {
        filter: alpha(Opacity=75);
        opacity: 0.75;
    }
    100% {
        filter: alpha(Opacity=100);
        opacity: 1;
    }
}

@-webkit-keyframes gsopacity {
    0% {
        filter: alpha(Opacity=0);
        opacity: 0;
    }
    25% {
        filter: alpha(Opacity=25);
        opacity: 0.25;
    }
    50% {
        filter: alpha(Opacity=50);
        opacity: 0.5;
    }
    75% {
        filter: alpha(Opacity=75);
        opacity: 0.75;
    }
    100% {
        filter: alpha(Opacity=100);
        opacity: 1;
    }
}
//gscenter
@keyframes gscenter {
    0% {transform: scale(0, 0);}
    25% {transform: scale(0.25, 0.25);}
    50% {transform: scale(0.5, 0.5);}
    75% {transform: scale(0.75, 0.75);}
    100% {transform: scale(1, 1);}
}

@-webkit-keyframes gscenter {
    0% {transform: scale(0, 0);}
    25% {transform: scale(0.25, 0.25);}
    50% {transform: scale(0.5, 0.5);}
    75% {transform: scale(0.75, 0.75);}
    100% {transform: scale(1, 1);}
}
// }
// .gs-show--drop {
//     transition: max-height 0.3s ease-in;
//     transform-origin: 50% 0;
//     animation: slide-down 0.3s ease-in;
//     -webkit-animation: slide-down 0.3s ease-in;
// }

// .gs-hidden--drop {
//     max-height: 0px;
//     overflow: auto;
//     transition: max-height 0.3s ease-out;
// }
@each $light in (drop, gsopacity, gscenter) {
    .gs-show--#{$light} {
        transition: max-height 0.3s ease-in;
        transform-origin: 50% 0;
        animation: #{$light} 0.3s ease-in;
        -webkit-animation: #{$light} 0.3s ease-in;
    }
}
@each $light in (drop, gsopacity, gscenter) {
    .gs-hidden--#{$light} {
        max-height: 0px;
        overflow: auto;
        transition: max-height 0.3s ease-out;
    }
}